import requests
import os

# AGIROS 的 Gitee 组织页面
organization = "agiros"
base_url = f"https://gitee.com/api/v5/orgs/{organization}/repos"

# 获取仓库列表
response = requests.get(base_url)
repos = response.json()

# 克隆每个仓库
for repo in repos:
    repo_name = repo["name"]
    repo_url = repo["clone_url"]
    print(f"Cloning {repo_name}...")
    os.system(f"git clone {repo_url}")